
namespace shuaige{
    export class Dehua{
        public name:string = '刘德华'
        talk(){
            console.log('我是帅哥 '+this.name)
        }
    }
}
namespace bajie{
    export class Dehua{
        public name:string = '八戒'
        talk(){
            console.log('我不是'+this.name)
        }
    }
}

let dehua1:shuaige.Dehua = new shuaige.Dehua()

let dehua2:bajie.Dehua = new bajie.Dehua()

dehua1.talk()
dehua2.talk()